package com.mdd.admin.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("预授款扣款记录详情Vo")
public class PreAuthorizationPaymentRecordDetailVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "租户号")
    private String tenantId;

    @ApiModelProperty(value = "预授权记录")
    private String preAuthorizationId;

    @ApiModelProperty(value = "操作类型;操作类型：1、扣款")
    private String operateType;

    @ApiModelProperty(value = "扣除金额")
    private BigDecimal money;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "扣款账单编号")
    private String alipayNo;

    @ApiModelProperty(value = "状态;状态1、扣款成功2、扣款失败3、扣款尝试中")
    private Integer status;

    @ApiModelProperty(value = "乐观锁")
    private Long revision;

    @ApiModelProperty(value = "是否删除;是否删除：0、正常1、删除")
    private Integer isDelete;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
